package vn.edu.saigontech.ncms.web.offering;

import java.util.Comparator;

import vn.edu.saigontech.ncms.model.teaching.TeachingInterruption;

public class TeachingInterruptionComparator implements Comparator<TeachingInterruption> {

	@Override
	public int compare(TeachingInterruption interruption1, TeachingInterruption interruption2) {
		return interruption2.getFromDate().compareTo(interruption2.getFromDate());
	}

}
